﻿#region Librerias

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography.X509Certificates;
using System.Reflection;
using ESF.General;

#endregion


namespace ESF.SFT.FileUploader.SharedResources
{
	public static class SharedResources
	{
		public static X509Certificate2 GetEnterpriseCertificate()
		{
			return new X509Certificate2(
				Assembly.GetExecutingAssembly().GetManifestResourceStream(
					string.Format("ESF.SFT.FileUploader.SharedResources.Certificates.{0}.cer", ReadConfig.EnterpriseAbbreviation)).ReadToByteArray());
		}
	}
}
